package net.ib.mtalk.account;

import android.content.Context;
import android.os.Handler;
import android.util.Log;
import net.ib.mtalk.constant.MTalkConstant;
import net.ib.mtalk.network.task.AddContactsTask;
import net.ib.mtalk.network.task.AllAddContactsTask;
import net.ib.mtalk.ui.UIController;
import net.ib.mtalk.util.MTalkLogWriter;

public class AccountController extends UIController {

	public AccountController(Context context, Handler handler) {
		super(context, handler);
		// TODO Auto-generated constructor stub
	}
	
	/**
	 * Add Contacts at Server
	 */
	public void addContacts(){
		try{
			MTalkLogWriter.d("AccountController.addContacts()");
			AddContactsTask task = new AddContactsTask(mContext, mUiHandler);
			task.execute();
		} catch(Exception e) {
			Log.e(MTalkConstant.TAG, "addAllContacts", e);
		}
	}
}
